Bit Manipulation Python Leetcode Solved