add 2492, disjoint set with relationship problem