Leetcode Reverse Bits | Python