You are given an array of words made of lowercase letters. A word A is a predecessor of word B if you can insert exactly one letter anywhere in A, without reordering its other letters, to get B. A word chain is a sequence where each word is a predecessor of the next; a single word is a chain of length 1. Return the length of the longest word chain you can build from words in the list.
You are given an array of words made of lowercase letters. A word A is a predecessor of word B if you can insert exactly one letter anywhere in A, without reordering its other letters, to get B. A word chain is a sequence where each word is a predecessor of the next; a single word is a chain of length 1. Return the length of the longest word chain you can build from words in the list.