Given a string $$$S$$$ of length $$$n$$$ consisting only of lowercase letters, the following conventions are established.
Now, given a non-negative integer $$$k$$$, you need to calculate the number of distinct non-empty $$$k$$$-loose subsequences of $$$S$$$, and output the result modulo 998244353.
Two subsequences $$$A$$$ and $$$B$$$ of $$$S$$$ are considered different if and only if $$$|A| \neq |B|$$$ or there exists an index $$$i$$$ such that $$$A_i \neq B_i$$$.
The first line contains an integer $$$T$$$ ($$$1\le T\le 10^6$$$), representing the number of test cases.
For each test case, the first line contains two integers $$$n, k$$$ ($$$1\le n \le 10^6, 0\le k \le n$$$), as described in the problem statement.
The second line contains a string $$$S$$$ of length $$$n$$$, guaranteed to consist only of lowercase letters.
It is guaranteed that for all test cases, $$$\sum n \le 10^6$$$.
For each test case, output a single integer on a new line, representing the number of distinct non-empty $$$k$$$-loose subsequences of $$$S$$$, modulo 998244353.
34 1aabb5 2abcab7 3abcdece
3 6 10
For the first test case, the subsequences a, b, ab meet the requirements.
For the second test case, the subsequences a, b, c, aa, ab, bb meet the requirements.
| Name |
|---|


