There are multiple test cases. The first line of the input contains an integer $T$, indicating the number of test cases. For each test case:
The first line contains two integers $n$ and $m(3 \le n \le 10^5, 1<m <n)$, indicating the number of grids in the maze, and the index of the starting grid.
The second line contains a string $s(|s|=n)$ consisting of characters 'L' and 'R'. The $i$-th character of $s$ indicates the character in the $i$-th grid.
It is guaranteed that the sum of $n$ over all test cases will not exceed $10^6$.