Mental Model
Union Find keeps track of groups of items and quickly tells if two items are in the same group.
Analogy: Imagine groups of friends where each friend knows who their group leader is. When two groups meet, they pick one leader to represent both groups.
0 [leader] 1 -> 0 2 [leader] 3 -> 2 4 -> 2
