IXL Learning interview question

Find peak element leetcode question