My code isnot working properly

it is showing me wrong o/p can you plz modify my code,
and tell me what i am doing wrong.
https://www.codepile.net/pile/PlB6b0l8

@premang
Unfortunately your approach is completely incorrect
Please see correct solution here https://www.geeksforgeeks.org/longest-bitonic-subsequence-dp-15/
If your doubt is resolved please close it