Bit Manipulation Python Leetcode Cheat