Pregunta de entrevista de X

A graph related algorithm question