##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
| # | Title | Points | Solved | Admin | |
|---|---|---|---|---|---|
Nasser gives you a string of length consisting of lowercase English letters.
In one operation, you can swap any two adjacent characters in the string.
Your task is to determine if it is possible to obtain at least one substring equal to "nasser" after performing any number of such operations (possibly zero).
A substring is a contiguous segment of the string.
Each test contains multiple test cases. The first line contains a single integer - the number of test cases. The description of the test cases follows.
The first line of each test case contains an integer - the length of the string.
The second line of each test case contains a string of length , consisting of lowercase English letters.
It is guaranteed that the sum of over all test cases does not exceed .
In the first test case, "assern":