Pregunta de entrevista de Google

A difficult Leetcode Problem about graph