Count Set Bit Leetcode Problems Python