Back to the Problem
Component discovery as usual, tracking the largest size found.
Complexity: O(N + M)