Google Interview Question

Regarding DSA around BFS algorithm