Python Hamming Weight Leetcode Solutions Cpp