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 num return minimum number element remove num mountain array Example 1input num 131output 0explanation the array mountain array need remove elementsexample 2input num 21156231output 3explanation one solution remove element indice 0 1 5 make array num 15631 constraints3 numslength 10001 numsi 109it guarantee mountain array num