But changing characters in grids is a tiring job. Your task is to help BaoBao calculate the minimum number of grids he has to change to escape the maze.
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 ≤ n ≤ 105,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 106.
For each test case output one line containing one integer, indicating the minimum number of grids BaoBao has to change to escape the maze.
For the first sample test case, BaoBao doesn't have to change any character and can escape from the 3rd grid. So the answer is 0.
For the second sample test case, BaoBao can change s8 to 'R' and s9 to 'R' and escape from the 10th grid. So the answer is 2.
For the third sample test case, BaoBao can change s4 to 'L' and escape from the 1st grid. So the answer is 1.