My code is right and I have done as it is given in editorial but it is showing TLE
Maximum length bitonic subarray
Hey, you have taken only greater and smaller in the conditon, instead of greater than or equal to and smaller than or equal to.I have made those changes and now it is getting accepted