Question d’entretien chez Empirasign Strategies

Given a bipartite graph, find the connected components (code). There was also a modulo arithmetic problem.