Unique Morse Code Words Leetcode Solution Extension