AMI Interview Question

Count set bits in an integer.