Meta interview question

find the peak in an array