Problem: You are given an array consisting of non-negative integers.
The numbness of a subarray (for arbitrary ) is defined as where denotes the bitwise XOR operation.
Find the maximum numbness over all subarrays.
Input Format: Each test contains multiple test cases. The first line contains the number of test cases (). The description of the test cases follows.
The first line of each test case contains a single integer ().
The second line of each test case contains integers ().
It is guaranteed that the sum of over all test cases does not exceed .
Output Format: For each test case, print one integer — the maximum numbness over all subarrays of the given array.
Note: For the first test case, for the subarray , its maximum value is . Hence, its numbness is = . This is the maximum possible numbness in this array.
In the second test case the subarray provides the maximum numbness.