Apple interview question

Bitwise questions like counting 1 bits in an integer.