If count is even , Xor of k - th bit becomes zero , no need to add to the answer . If count is odd , only then , add to the final answer
if ( count & 1 ) : NEW_LINE INDENT ans += ( 1 << k ) NEW_LINE DEDENT