PayPal interview question

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