There are multiple test cases. The first line of input contains an integer , indicating the number of test cases. For each test case:
The first line contains an integer () -- the length of the sequence.
The second line contains integers ().
The third line contains integers ().
It is guaranteed that the sum of over all test cases does not exceed .