MAXIMUM LENGTH BITONIC SUBARRAY

I’M not able to do this question , as the editorial of this question is given,.
Now , i want to ask you that How do we come to know about that approach given in the editorial,
Is, there any other brute force approach for this question or we have to remember the approach given in the tutorial.
please help me this proble.

This is just observation, and you need to do more of the questions regarding implementations and you start seeing these patterns.

okay, thanks ji. . . . .