About the "Increasing Decreasing Sequence"

Its quite complex fot me to solve all the test cases of this question. Can you please help me in solving in this question. The url link of the solution uploaded to coding blocks ide is https://ide.codingblocks.com/s/164630 .

I think you misunderstood the question, you just have to split input list into two sequences such that first sequence is strictly decreasing and second is strictly increasing.
Hint : try simple traversal to find a number which is greater than previous number
And secondly try solving the question in Python, it will help you in the course.
If any doubt feel free to share your code.

I hope I’ve cleared your doubt.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.