The first line contains an integer--- the number of test cases.
The first line of each test case contains an integer--- the length of string
.
The second line contains a string. It's guaranteed that
consists only of lowercase English letters.
For each test case, output an integer in one line. --- The number ofsubstrings.