Given a 32-bit integer
n. Reverse the bits of the number and return the result.Example 1
Input: n = 43261596
Output: 964176192
Explanation: The bits of the number are reversed.
Output: 964176192
Explanation: The bits of the number are reversed.
Example 2
Input: n = 2147483644
Output: 1073741822
Explanation: Reversal of the 32-bit representation.
Output: 1073741822
Explanation: Reversal of the 32-bit representation.