Codility: OddOccurrencesInArray

Time Complexity: O(N)
Space Complexity: O(1)

from functools import reduce
from operator import xor

def solution(A):
    return reduce(xor, A)