Qualcomm Interview Question

Reverse a number using bit manipulation.