Pergunta de entrevista da empresa MathWorks

How would you implement queue using stack?