Pregunta de entrevista de Unity

Breadth first search algorithm, similar to leetcode