Link: https://codeforces.com/problemset/problem/1833/E Prerequisites: Graph Theory, Undirected Graph, Sets, DFS, Cycle/Acyclic Graphs