Your question is Implement Queue Using Stacks. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Implement a queue using two stacks. Create a class MyQueue that supports push(x) to add an integer to the back of the queue, pop() to remove and return the front element, peek() to return the front element without removing it, and empty() to return whether the queue is empty. All operations should behave like a standard FIFO queue.
def process_queue_operations(operations, values):