you recall array arr mountain array ifarrlength 3There exist index 0indexe 0 arrlength 1 thatarr0 arr1 arri 1 arriarri arri 1 arrarrlength 1given integer array arr return length long subarray mountain Return 0 mountain subarray Example 1input arr 2147325output 5explanation the large mountain 14732 length 5Example 2input arr 222output 0explanation there mountain Constraints1 arrlength 1040 arri 104 Follow upcan solve passcan solve o1 space