human
Write me a code to find XOR sum of Bitwise AND of all pairs from given two Arrays and the other steps required given the following:
Find XOR sum of Bitwise AND of all pairs from given two Arrays | Function to calculate the XOR sum of all ANDS of all pairs on A [ ] and B [ ].
variable to store xor sums of first array and second array respectively ..
Xor sum of first array.
Xor sum of second array.
required answer.
Driver code.
Input.
Function call"
Solution in Python:
assistant
#Here is code to find XOR sum of Bitwise AND of all pairs from given two Arrays and the other steps required.
 def XorSum ( A , B , N , M ) :
	ans1 = 0
	ans2 = 0
	for i in range ( N ) :
		ans1 = ans1 ^ A [ i ]
	for i in range ( M ) :
		ans2 = ans2 ^ B [ i ]
	return ( ans1 & ans2 )
if __name__ == ' _ _ main _ _ ' :
	A = [ 3 , 5 ]
	B = [ 2 , 3 ]
	N = len ( A )
	M = len ( B )
	print ( XorSum ( A , B , N , M ) )