| TheForces Round #26 (Readall-Forces) |
|---|
| Finished |
You are given a string $$$s$$$ of length $$$n$$$. You are performing the following operations $$$k$$$ times:
Find the lexicographically smallest string you can obtain.
The first line of the input contains a single integer $$$t$$$ ($$$1 \le t \le 10^4$$$) — the number of test cases. The description of the test cases follows.
The first line of each test case contains two integers $$$n$$$ and $$$k$$$ ($$$1 \le k \le n \le 2 \cdot 10^5$$$).
The second line contains the string $$$s$$$, consisting of $$$n$$$ lowercase English letters.
The sum of $$$n$$$ over all test cases does not exceed $$$2 \cdot 10^5$$$.
For each test case, output the lexicographically smallest string you can obtain.
47 3abacaba9 2theforces5 4edcba7 3pavlekn
aaaacbb cheforest abcde aeplknv
In the first test case, we can do the following operations:
In the second test case, we can do the following operations:
| Name |
|---|


