MathWorks Interview Question

How would you implement queue using stack?