TuSimple Interview Question

topological sort for ROS DFS, BFS Dynamic Programming Tries