Qualcomm interview question

Reverse a number using bit manipulation.