Domanda di colloquio di MathWorks

How would you implement queue using stack?