Number of Connected Components in an Undirected Graph - Medium Python Graphs Interview Problem | Unnested