Pergunta de entrevista da empresa Goldman Sachs

Leetcode Medium/Hard question about graphs and trees