Let's call some string of length nnn diverse if and only if there is no letter to appear strictly more than n2\frac{n}{2}2n times.
DeepL 给出的翻译是
长度为 nnn 的字符串具有多样性,当且仅当没有严格意义上超过 n2\frac{n}{2}2n 次的字母出现。
题目中误将“没有严格意义上超过”译为“严格小于”。