Getting TLE on Maximum Length of Bitonic Subarray

Here is my code.
I’m unable to find any errors

Hi
Try adding
ios_base::sync_with_stdio(false); cin.tie(NULL);
These 2 lines just inside your main function.

Getting wrong answer now.