Maximum length biotonic subsequence problem(plzz check)

https://ide.codingblocks.com/s/53660

custom all are running

Hey Shubham, your code is not working when array is entirely increasing. For eg. check for this case
input:
1
4
10 20 30 40

your code’s output:
3

but the expected output is:
4