Question d’entretien chez Google

Island DFS question with binary trees.