I am not getting this question. Request you to please explain this.
Please explain this
You have to divide the string into two parts such that the first part is the decreasing sequence and the second part is increasing sequence.
For example: if the input is: 3 2 1 1 2 3 then the answer is true since the array can be divided into two parts 3 2 1 and 1 2 3