Xor Of Sum Of All Pairs
easy
1. You are given an array of integers. 2. You have to find the XOR of sum of all pairs in the array.
Constraints
1 <= N <= 10^9 1 <= arr[i] <= 10^9
Format
Input
A number N arr1 arr2.. N numbers
Output
Check the sample ouput and question video.
Example
Sample Input
5
1
5
2
1
2
Sample Output
10
Question Video