There is a table of $$$2 \times n$$$ cells. Each cell of the table is colored either red or black. You want to repaint some cells of this table so that there exists at least one way to partition all cells into $$$n$$$ pairs such that the following conditions hold:
What is the minimum number of cells that need to be repainted?
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^4$$$). The description of the test cases follows.
The first line of each test case contains one integer $$$n$$$ ($$$1 \le n \le 2 \cdot 10^{5}$$$).
The second and third lines of each test case describe the colors of the cells. Each line contains a string consisting of exactly $$$n$$$ letters "R" and/or "B".
Additional constraint on the input:
For each test case, output one integer — the minimum number of cells that need to be repainted.
51RB2BRBR3RBRBRB4RRBBBBRB5RBRBRBBBRB
10314
Consider the $$$3$$$rd example. One possible option is to color all cells in one color, which requires repainting $$$3$$$ cells.
In the $$$4$$$th example, one possible valid repainting is
RRBB
BBRR