Nov Long Challenge Hill Sequence Problem

I have tried to solve Nov Long Challenge Problem Hill Sequence and generated various outputs for my code it worked! But facing problem in submission showing WA. Please find the issue and suggest answer- Solution: 53548522 | CodeChef.

Same problem…have you got it solved? Please see my solution too.
Solution: 53906044 | CodeChef 8

Your code (Both of you) fails on

Test Case 1
6
5 5 7 7 7 11
1 Like