Design a Deque (Double-Ended Queue) | Hello Interview