Walls and Gates - Medium Python Graphs Interview Problem | Unnested