Increasing decreasing sequence (problem in testcase no 2)

all test cases got passed except for testcase no 2.

my approach covered all 3 cases:
strictly increasing
strictly decreasing
first decreasing then increasing.
please help!