You are given a string s.
A prefix of s is called a residue prefix if the number of distinct characters in the prefix is equal to the length of the prefix modulo
Return the total number of residue prefixes of s.
Constraints:
s.length
s contains only lowercase English letters.
You are given a string s.
A prefix of s is called a residue prefix if the number of distinct characters in the prefix is equal to the length of the prefix modulo
Return the total number of residue prefixes of s.
Constraints:
s.length
s contains only lowercase English letters.