Number of Connected Components in an Undirected GraphGiven n vertices and undirected edges, return the number of connected components.