NVIDIA Interview Question

Reverse all the bits in an unsigned integer, e.g., 1011 becomes 1101.