a peak element 2D grid element strictly great adjacent neighbor leave right bottomgiven 0indexe m x n matrix mat adjacent cell equal find peak element matij return length 2 array ijYou assume entire matrix surround outer perimeter value 1 cellYou write algorithm run Om logn on logm time Example 1input mat 1432output 01explanation both 3 4 peak element 10 01 acceptable answersexample 2input mat 10201521301471632output 11explanation both 30 32 peak element 11 22 acceptable answer Constraintsm matlengthn matilength1 m n 5001 matij 105no adjacent cell equal