Increasing Decreasing Sequence Crux

Test Case 9 is failing. Please Correct me.

Hi @nirbhayvashisht,
There is a small conceptual error.The sequence must be strictly increasing or decreasing so that means equal elements will not work .


check the comments in the above given code

Thank You for helping