Increasing decreasing sequence question

sir I am not able to understand the language of this question . it says that for a sequence the first sequence should be decreasing and second should be increasing . but according to the input 1 2 3 4 5 the input is only increasing first and not decreasing then how can be the output true??

Hi khushi
in this problem you have to basically consider 4 cases

the sequence can be either monotonically increasing
the sequence can be either monotonically decreasing
it can be either first increasing then decreasing
it can be either first decreasing then increasing.
if any of the case is true then answer is “yes”
try working upon this.

ok thanks ma’am . I will try working upon this