Power of Two - Leetcode 231 - Python