Reverse Bits Leetcode Solutions Java