A tree with n nodes (labeled 1 to n) had one extra edge added, creating exactly one cycle. You are given the resulting edges array.
Return the edge that can be removed so that the result is a tree of n nodes. If there are multiple answers, return the edge that occurs last in the input.