Bit Manipulation Python Leetcode Problems