Pergunta de entrevista da empresa Grasshopper

DFS (Depth-First Search) and another and string manipulation