Power of Two | Bit Manipulation | Leetcode 231 | Python