DoorDash interview question

Leetcode medium in graphs, practice dfs, bfs