Python Reverse Bit Leetcode 1503 North