Two pla
The rules of the game are as follows:
If both pla
The first line contains a single integer �T (1≤�≤1501≤T≤150), denoting the number of test cases.
The first line of each test case consists of an integer �n (1≤�≤1051≤n≤105), denoting the length of the string.
The second line contains a string of length �n consisting of only 00s and 11s, denoting the initial string of the game.
It is guaranteed that there are no more than 5050 test cases with �>100n>100.
2
3
110
5
01010
1
-1