Pregunta de entrevista de VNG Corporation

Solving a queue problem with heap