Pregunta de entrevista de WorldQuant

How can you make a queue with a couple of stack