Increasing Decreasing

ques:- https://online.codingblocks.com/app/player/189104/content/180067/4801/code-challenge

what if the given input number is odd ?? how to split then
And here in sample input number which is given is not strictly decreasing 5,1,2.

Sample Input
5
1
2
3
4
5
Sample Output
true

hello @dasvishal60

split it like this
{1} { 2,3,4,5}

first one can act as decresing and later one increasing

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.