Unable to pass 2nd test case

I’m unable to pass 2nd test case please check what is wrong in my code

Hey @pankajrajput020010, your code looks great. But it does not cover one test case i.e.

5
1
2
2
3
4

This test case should give the output as false. But your code return true.

Please Note : When two consecutive numbers in the sequence appear to be the same, the output has to be false !

I hope this resolves your doubt !
Happy Learning :slight_smile:

okay, i get the point thanks