MathWorks interview question

How would you implement queue using stack?