Count Complete Substrings
Split the word where neighbours drift more than two letters apart, then count windows where every letter appears exactly k times.
Split the word where neighbours drift more than two letters apart, then count windows where every letter appears exactly k times.