allowed string.allowed and add it to the HashSet.words array.
a. For each word, iterate through its characters.
b. Check if the current character is in the HashSet.
c. If a character is not found, mark the word as inconsistent and break the inner loop.