Design Circular Deque Leetcode Problems Python