Question d’entretien chez Google

Find every possible path in a directed graph