licensePlate
to lowercase and filter out non-alphabetic characters.Counter
for the filtered licensePlate
to count the occurrence of each character.words
array by the length of the words in ascending order.words
array.Counter
to count the occurrence of each character.Counter
contains at least the same count for each character as the licensePlate
's Counter
.