L&T Technology Services Interview Question

Check how many bits are set in a number