Calix interview question

coding: to find the peak element