https://www.geeksforgeeks.org/implement-stack-queue-using-deque/