Bloomberg Interview Question

Given multiple fully connected sets of verts, find connected components between sets.