Python Reverse Bit Leetcode 150 Question