Pergunta de entrevista da empresa VNG Corporation

Solving a queue problem with heap