A string is considered good if all of its characters are distinct.
Given a string s, return the total number of good substrings of length s.
Note: If a good substring occurs multiple times, each instance is counted separately.
Constraints:
s.length
s consists of lowercase English letters.
A string is considered good if all of its characters are distinct.
Given a string s, return the total number of good substrings of length s.
Note: If a good substring occurs multiple times, each instance is counted separately.
Constraints:
s.length
s consists of lowercase English letters.