Bloomberg Interview Question

Count the on-bits in a number