IXL Learning Interview Question

Find peak element leetcode question