Clari interview question

A DFS based problem that involved parsing input