You are given an array A of size N. The value of the array is the bitwise XOR of the elements that the array contains. For example, the value of the array [1,2,3] = 1⊕2⊕3. Now, you are required to find the bitwise XOR of the value of all subarrays of array A.
Input format
Output format
For each of the test case, print the required answer in a separate line.
Constraints
1≤T≤20
1≤N≤105
1≤A[i]≤106
For the given input following subarrays are possible : [1], [1 2], [2] and when you XOR them answer is 0.