If bit is not set in c then set it in second element to keep xor as zero for bit position
if ( ! ( c & ( 1 << bit ) ) ) { arr [ 1 ] |= ( 1 << bit ) ; } } } } let aa = Number . MAX_SAFE_INTEGER , bb = 0 , cc = 0 ;