Leetcode Count Set Bits In Python For All Selected In Power