A connected undirected graph started as a tree, then one extra edge was added. Return the last input edge that can be removed to restore a tree.