Uber Interview Question

Leetcode hard problem related to graphs and DFS.