Pergunta de entrevista da empresa Coding Blocks

DSA question on Priority Queue