Hi Mohit,
Have some doubts with increasing/decreasing sequence.
the sample input uses 5 1 2 3 4 5 as input ,which can not be split into two sequences of strictly increasing and decreasing . But the sample output says “true” .
Shouldn’t that be false ?
Also , Can you please check my code in