The first line contains an integer
T (
1≤T≤1000), denoting the number of test cases.
T cases follow.
-
The first line of each test case contains an integer n (1≤n≤5⋅106).
-
The second line contains a string s of length n consists of lowercase letters only.
It is guaranteed that the sum of
n does not exceed
2⋅107.