Now we take the resultant values and XOR them together:
. Return .
Complete the sansaXor function in the editor below.
sansaXor has the following parameter(s):
int arr[n]: an array of integers
int: the result of calculations
The first line contains an integer , the number of the test cases.
Each of the next pairs of lines is as follows:
- The first line of each test case contains an integer , the number of elements in .
- The second line of each test case contains space-separated integers .