Word Ladder : Pass, given word length k, dictionary size n, time
complexity is O(k*n)