Meta Interview Question

find the peak in an array