Domanda di colloquio di Amazon

One was priority queue based question (Easy).