LeetCode Word Ladder 2.