maintain an array of size 32, add up all num on each bit. Each element in array is mod by 3. The array is the binary representation of result
elegent one pass solution, constant space