Implement Stack Using Deque Leetcode Javascript Questions