Intel Corporation interview question

Check for bits in a number. create macro and general handling using bitwise operator