Meta interview question

find peak element on leetcode