Pregunta de entrevista de Clari

A DFS based problem that involved parsing input