Pergunta de entrevista da empresa Apple

Bitwise questions like counting 1 bits in an integer.