
With respect to a given puzzle string, a word is valid if both the following conditions are satisfied:
word contains the first letter of puzzle .
For each letter in word , that letter is in puzzle .
For example, if the puzzle is "abcdefg" , then valid words are "faced" , "cabbage" , and "baggage" , while
invalid words are "beefed" (does not include 'a' ) and "based" (includes 's' which is not in the puzzle).
Return an array answer , where answer[i] is the number of words in the given word list words that is valid with respect to the puzzle puzzles[i] .
1 <= words.length <= 10 ^54 <= words[i].length <= 501 <= puzzles.length <= 10 ^4puzzles[i].length == 7words[i] and puzzles[i] consist of lowercase English letters.Each puzzles[i] does not contain repeated characters.