Word Ladder

Return the length of the shortest transformation from beginWord to endWord.

Examples
Input: ["hit","cog",["hot","dot","dog","lot","log","cog"]]
Output: 5
Hints

Word Ladder

Return the length of the shortest transformation from beginWord to endWord.