Is it a Doubloon?
A word is a doubloon when every letter in it appears exactly twice. Step through isDoubloon and watch the outer loop pick each letter while letterCount scans the whole string to count it.
Code
The string
isDoubloon's
i (picks the letter)
letterCount's i (scans)
counted as a match