Only 1 test case fail out of 8. Not able to find error

For the problem increasing and decreasing sequence i had cleared 7 test cases but still there is one test case in which i am getting a wrong answer. I don’t know what it is but i am not able to detect that error. Can you please help me out in this that where i am getting the error because according to me this program should run well.

@IT5_L0K35H
Hello Lokesh,
please share your code link
follow these steps
a) paste ur code in coding blocks ide
b) press save button to save it
c) share the generated link here

@IT5_L0K35H
Hello Lokesh ,
your code is code.there is ambiguity in the problem statement.
they want false output for cases like
2
2 2
but your code is giving true ( I also think it should be true as per problem statement).
to get ac just add check for these type of cases

ok. Got this. Thankyou.