An Adobe Photoshop text workflow needs to transform a starting keyword into a target keyword using only approved intermediate words. Implement a Breadth-First Search solution that returns the shortest valid transformation sequence.
A transformation changes exactly one lowercase character. Every intermediate word, including the target, must appear in word_list. Each word has the same length as start_word. Return the sequence of words from start_word to end_word, or an empty list if no sequence exists.
Implement ladder_path(start_word, end_word, word_list).
start_word and end_word are strings. word_list is a list of unique lowercase strings.start_word == end_word, return [start_word], even if it is not in word_list.def ladder_path(start_word, end_word, word_list):