Pergunta de entrevista da empresa Applied Intuition

Leetcode hard (graph traversal question)