Bloomberg Interview Question

LeetCode medium - DFS through a graph