You are given an array A , you have to construct a new array A2.
The values in A2 are obtained by doing Xor of consecutive elements in array.
First line of the input contains t, the number of test cases. Each line of the test case contains a number n specifying the number of elements.
Each 'n' lines denoting elements of array A.
Each new line of the output contains element of array A2 .
Sample Input 0
10 11 1 2 3
Sample Output 0
1 10 3 1 3
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.