TikTok interview question

Leetcode hard question: Word Ladder (rd 1)