Pergunta de entrevista da empresa Myntra

Cycle detection in graph using Disjoint set union by rank and path compression.