Power Of Two Leetcode Python Solution