JS solution in a single line


#1
return A.reduce((a,b) => a ^b);