Maximum length biotonic subsequence

i dont understand
do we have to count increasing/decresing or both??
and how?? i want some hints

Khushi, for this question, u will construct two arrays, increasing[ ] from left to right such that it contains length of increasing values ; then decreasing [ ] from right to left such that it contains length of decreasing values,
then find the max value using these two arrays.