this problem interactive problemyou recall array arr mountain array ifarrlength 3There exist 0 arrlength 1 thatarr0 arr1 arri 1 arriarri arri 1 arrarrlength 1given mountain array mountainArr return minimum index mountainarrgetindex target if index exist return 1you access mountain array directly you access array MountainArray interfaceMountainArraygetk returns element array index k 0indexedmountainarraylength return length arraysubmission make 100 call MountainArrayget judge Wrong Answer Also solution attempt circumvent judge result disqualification Example 1input array 1234531 target 3output 2explanation 3 exist array index2 index5 return minimum index 2example 2Input array 012421 target 3output 1explanation 3 exist array return 1 Constraints3 mountain_arrlength 1040 target 1090 mountain_arrgetindex 109