No clarity with the question!

is it increasing decreasing sequence or decreasing increasing sequence…plzz clarify

Hey @harika22k2020

It’s first decreasing and then increasing.

then how is 1 2 3 4 5 decreasing increasing correct because it is not mentioned that either increasing or decreasing is also correct!

My bad !, I did not read all the test cases.
The array can be both increasing then decreasing or vice versa.