

The first line of input contains an integer 'T' representing the number of test cases.
The first line of each test case contains an integer ‘N’. Here ‘N’ represents the total number of attacks used by Goku and Jiren.
The second line contains ‘N’ space-separated integers denoting the energy of attacks of Jiren.
The third line contains ‘N’ space-separated integers denoting the energy of attacks of Goku.
For each test case, print the minimum energy which Jiren will absorb.
The output of each test case will be printed in a separate line.
1 <= T <= 5
1 <= N <= 5000
1 <= data <= 10^9
Where ‘T’ is the number of test cases, ‘N’ denotes the total number of attacks to be used by Goku and Jiren and ‘data’ denotes the energy of attack of Goku and Jiren.
Time Limit: 1sec
You do not need to print anything, it has already been taken care of. Just implement the given function.
Let’s represent the energy of Goku’s attack by array ‘A’ and energy of Jiren’s attack with ‘B’. First, we will sort both arrays ‘A’ and ‘B’. Then, for each element of ‘A’, say ‘X’ we fill find an element in ‘B’, say ‘Y’ such that |X – Y| is minimum. For the first element of ‘A’ i.e. ‘A[0]’, we need to pair it with ‘B[0]’ because all elements with index ‘i’ such that ‘i’ > 0 will give |A[0] – B[i]| and this absolute difference is greater than | A[0] – B[0] |
So, for each index ‘i’ we need to pair ‘A[i]’ with ‘B[i]’.