Delinea Interview Question

algorithm to find local max in array