Approach hintTry it first, then revealHide
Count, for each of the 32 bit positions, how many numbers have that bit set. The bits of the answer are exactly the positions whose count is not a multiple of 3.
Count, for each of the 32 bit positions, how many numbers have that bit set. The bits of the answer are exactly the positions whose count is not a multiple of 3.