Question d’entretien chez Amazon

General DSA question based on Graphs