Question d’entretien chez Uber

Leetcode hard problem related to graphs and DFS.