Count Set Bit Leetcode Python Practice