Input: edges = [[1,2],[2,3],[3,4],[1,4],[1,5]]
Explanation: Initially, 1-2, 2-3, 3-4 are processed, connecting 1,2,3,4 into one component. When processing [1,4], nodes 1 and 4 are already connected (1-2-3-4). Thus, [1,4] is the redundant edge that forms a cycle. [1,5] is then processed, connecting node 5, but the cycle was already formed by [1,4].