Question d’entretien chez X

A graph related algorithm question