You are given an array of N integers . Find and output the Bitwise OR of XORs of all the possible subarrays of the given array .
The first line will consist of the number of elements in the array i.e N.
The next line will consist of N space separated integers denoting the elements of the array .
Output a single value denoting the Bitwise OR of XORs of all the subarrays of the given array
1≤N≤106
0≤a[i]≤103
All the possible subarrays of the given array are
1
2
3
1 2
2 3
1 2 3
The Bitwise OR of the XORs of the subarray is 1 OR 2 OR 3 OR 3 OR 1 OR 0 = 3