Python counter solution
\ndef maxFreq(self, s: str, maxLetters: int, minSize: int, maxSize: int) -> int:\n\tcount = defaultdict(int)\n\tfor i in range(len(s)-minSize+1):\n\t\tw = s[i:i
```\ndef maxFreq(self, s: str, maxLetters: int, minSize: int, maxSize: int) -> int:\n\tcount = defaultdict(int)\n\tfor i in range(len(s)-minSize+1):\n\t\tw = s[i:i+minSize]\n\t\tif len(set(w))<=maxLetters:\n\t\t\tcount[w] += 1\n\treturn max(count.values() or [0])\n```
[]