Reverse Bits Leetcode Solution C