Add solution for #10369 Arctic Network
Algorithms: Add Disjoint Set