Pergunta de entrevista da empresa Amazon

Write a program to count the bits in an int.