Pergunta de entrevista da empresa PayPal

A very difficult LeetCode "Medium" combining graph/tree DFS and string parsing.