Pregunta de entrevista de Microsoft

Detect loop in an undirected graph