Intel Corporation Interview Question

write a program to count set bits in number