Given an integer array arr, return the length of the longest subarray, which is a mountain. Return 0 if there is no mountain subarray.
You are given an array of integers arr. A mountain is a subarray that has at least 3 elements. Strictly increases until a peak (not at the ends). Strictly decreases after the peak. Return the length ...