Pergunta de entrevista da empresa Fanatics

Leetcode BFS question, similar to word ladder.