Delinea interview question

algorithm to find local max in array