Qualcomm Interview Question

Find the number of bits set in an integer.