counts
of size 26 to keep the frequency of each letter in the word
.distinct
to count the number of distinct letters.word
, updating counts
for each letter and incrementing distinct
when a letter is first encountered.counts
array.true
.true
.true
.true
.false
.