Hudson River Trading Interview Question

Leetcode 162. Find Peak element