My code is poducing slight wrong output..could you please correct it

question: unique number II

answer:

Hey @aarijrab
On line 24 it should be

arr[i]&mask>0

It should be and because we will take xor of numbers whose that bit is set