Pergunta de entrevista da empresa Clari

A DFS based problem that involved parsing input