Pregunta de entrevista de Optiver

Write a queue in C++ in their horribly broken interface.