Increasing Decreasing Sequence partially incorrect


unable to solve two test cases

@Sammy_091 Your code will fail with the test case 5 4 3 2 1, it will show false as the output but the correct output for 5 4 3 2 1 is true. Strictly decreasing sequences also satisfy the condition given in the question. Modify your code accordingly so that it gives correct input for strictly decreasing cases as well.
Hope this helps.

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.