Bit Manipulation Python Leetcode Interview