Not getting the test case - biotonic problem

I am not getting how the o/p is 6 and 5 respectively.

In the 1st test case ,
1 , 11 , 2 , 10 , 4 , 5 , 2 , 1
the answer should be 4 (for subsequence 4,5,2,1).

In the 1st test case ,
80 , 60 , 30 , 40 , 20 , 10
the answer should be 4 (for subsequence 30,40,20,10).

Hi @ajain4871,
For 1st test case -your ans should be 1, 2, 4, 5, 2, 1
For 2nd test case -ans is 80, 60, 40, 20 10 or 80, 60, 30, 20 10