is there some problem with the input that this program is not giving the right answer for the xoragain question

def main():
t=int(raw_input())
for i in range(t):
n=int(raw_input())
arr=[]
str_arr = raw_input().split(’ ')
arr = [int(num) for num in str_arr]
brr=[]
brr=map(times,arr)
ans=0
for k in brr:
ans=ans^k
print(str(ans))
def times(m):
return 2*m