Question d’entretien chez Amazon

graph based question and prirority queue