Robinhood Interview Question

Question about graphs. Write code for depth first search.