LeetCode
Reverse Bits
Click
here
for an explanation.