Perform XOR operation on each bit
for i in range ( max_len ) : NEW_LINE INDENT pres_bit = 0 NEW_LINE for j in range ( n ) : NEW_LINE INDENT pres_bit = pres_bit ^ ( ord ( arr [ j ] [ i ] ) - ord ( '0' ) ) NEW_LINE DEDENT result += chr ( ( pres_bit ) + ord ( '0' ) ) NEW_LINE DEDENT