Block interview question

I was asked a BFS question (a common Leetcode problem).