Domanda di colloquio di Google

algorithm problem can be solved with dfs