Pregunta de entrevista de Amazon Web Services

a leetcode about undirect graph