is it increasing decreasing sequence or decreasing increasing sequence…plzz clarify
No clarity with the question!
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.