Pregunta de entrevista de Shopee

Implement a queue without allocating and deallocating too much.