Bfs In Graph Leetcode Question