Pregunta de entrevista de Unify

Disjoint set Question, MCM, Topological sort