Question d’entretien chez DRW

They asked me to design a function that simulates a queue using two stacks and ensures efficient enqueue and dequeue operations.