Robinhood Interview Question

LC medium about graphs and DFS