Solution to https://oj.leetcode.com/problems/word-ladder/

I had first implemented a DFS based algorithm, but later
realized that BFS works far better.