LinkedIn interview question

word ladder from Leetcode