Python Hamming Weight Leetcode Solutions C