Pergunta de entrevista da empresa Universal Electronics

Count how many bit are turned on in the integer?