Which test case is not working

which test case is not working can you please tell , so that i can resolve the errors.

Hey @1999atrijsharma
Try for this input
7
10
7
6
5
3
2
1
correct output is : true
your code gives : false