CS Notes Disjoint Set (Union find) - https://github.com/prajwaldp/cs-notes/blob/master/leetcode/LC684RedundantConnections.java