Question d’entretien chez Microsoft

Pretty standard graph question testing recursion