If we are given a List<Pair<Integer, Integer>> Edges in an undirected Tree in function instead of Node, how would we create the Tree?