Question d’entretien chez Amazon

2 graph problems, 1 hashmap problem