Question d’entretien chez Google

Algorithm problem about DFS and backtracking