human
XOR of all subarray XORs | Set 1 | Returns XOR of all subarray xors.
initialize result by 0 as ( a XOR 0 = a ).
loop over all elements once.
get the frequency of current element.
if frequency is odd , then include it in the result.
return the result.
Driver Code"
Solution in Python:

=====
Write me a code to xOR of all subarray XORs and the other steps required?
assistant
#Here is code to xOR of all subarray XORs and the other steps required.
 def getTotalXorOfSubarrayXors ( arr , N ) :
	res = 0
	for i in range ( 0 , N ) :
		freq = ( i + 1 ) * ( N - i )
		if ( freq % 2 == 1 ) :
			res = res ^ arr [ i ]
	return res
arr = [ 3 , 5 , 2 , 4 , 6 ]
N = len ( arr )
print ( getTotalXorOfSubarrayXors ( arr , N ) )