Design Queue using stack as datastructure ?
Asked in the LLD and Concurrency stage. Implement queue behavior using only stack-based structures.
Implement def queue_operations(operations):. Each operation is a list containing ['enqueue', value], ['dequeue'], ['peek'], or ['is_empty']. Return a list containing the result of every dequeue, peek, and is_empty operation. Return None for dequeue or peek when the queue is empty.
def queue_operations(operations):