Pergunta de entrevista da empresa Unity

Breadth first search algorithm, similar to leetcode