Implement Queue using StacksImplement a queue using two stacks with O(1) amortized time complexity for all operations.
Implement Stack using QueuesImplement a stack using two queues with O(1) amortized time complexity for all operations.