Domanda di colloquio di Robinhood

Question about graphs. Write code for depth first search.