You're given two binary strings $$$a$$$ and $$$b$$$ of length $$$n$$$.
You can do the following operation any number of times:
Find the minimum number of operations to change $$$a$$$ to $$$b$$$. If you cannot change $$$a$$$ to $$$b$$$, output $$$-1$$$ instead.
The first line contains an integer $$$t$$$ ($$$1 \leq t \leq 10^5$$$), the number of test cases.
For each test case:
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$4 \cdot 10^5$$$.
For each test case, output a single line containing the minimum number of operations to change $$$a$$$ to $$$b$$$. If you can not change $$$a$$$ to $$$b$$$, output $$$-1$$$ instead.
530000113000111300000040010010051110110011
-1 -1 0 2 3
In the first and second test cases, you cannot change $$$a$$$ to $$$b$$$.
In the third test case, $$$a$$$ and $$$b$$$ are already equal, so you don't need to do any operations.
In the fourth test case, you can change $$$a$$$ to $$$b$$$ after the following two operations:
It can be proven that $$$2$$$ is the minimum number of operations.