TuSimple Interview Question

Questions related to Stack and Queue; BFS/DFS