Union-Find - Pointers- Union(A,B)

a) Merges the sets containing elements A and B.
b) Finds the common ancestor of sets A and B.
c) Deletes the set with the highest rank.
d) Checks if sets A and B are disjoint.