Verdiem interview question

write function to count number of bits set in integer