Verdiem Interview Question

write function to count number of bits set in integer