public int[] findRedundantConnection(int[][] edges) {
        if (edges == null || edges.length == 0)
            return null;
        a = new int[edges.length + 1];
        for (int i = 0; i < a.length; i++) {
            a[i] = i;
        }
        for (int i = 0; i < edges.length; i++) {
            connect(edges[i]);
        }

        return result;
    }
Why Did you create this class? what does it do?
src/problems/medium/RedundantConnection.java