Pregunta de entrevista de MathWorks

How would you implement queue using stack?