TuSimple interview question

graph, DFS, BFS, matrix, bit manipulation