Maximum length biotonic subsequence problem

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

sir, my code is not producing correct result. wht logic should be implemented here ?

Hey Yukti, your code is correct and its working perfectly fine for all the test cases, try to submit it again.