Python Reverse Bit Leetcode 150 Solution