What is a Mountain array?
It's an array where the elements first increase in ascending order, reach a peak, and then decrease in descending order.
The number of elements in a mountain array is at least 3.arr.length>=3
example:
[1,2,3,4,5,4,3,2,1]
[...