Sollicitatievraag bij Amazon

One was priority queue based question (Easy).