Check whether a given Subarray of an array is in mountain form or not

I have tried to solve this problem but i did not get the answer
could you please help me.

please Share your solution