Question d’entretien chez Google

Graph based algorithm.