Friend Circles 朋友圈 Solution It's like to mark connected graph We can use Disjoint Set to solve it We need to be careful about optimizing with path compression