Amazon Interview Question

Word Ladder from leetcode directly