Deque for maximum

1126. Searching max values on array using deque.