Increasing decreasing order

sir in this question 5 4 3 3 4 5 6 this also should be a valid order isnt it as this can be broken down into two sub-arrays

Array1->5 4 3

Array2->3 4 5 6

as Array1 is strictly decreasing and array2 is strictly increasing isnt it???

@tejasddongare yes it is valid

@tejasddongare according to the question it should be but i think test cases consider it as false. just try doing both no worry
dont forget to hit like and mark resolved if cleared :smiley: