Pregunta de entrevista de Goldman Sachs

Leetcode Medium/Hard question about graphs and trees