Find magnitude pole in an array.  A magnitude pole defined as an element in an array whose left hand side elements are lesser than or equal to it and whose right hand side element are greater than or equal to it. For example

if input is:-

the output should be:-


Related Contents to follow