Question d’entretien chez Google

DFS based question with performance improvement.

Réponse à la question d'entretien

Utilisateur anonyme

29 oct. 2021

I solved the question along with performance improvement. The reason for reject was missing boundary conditions.