Python Hamming Weight Leetcode Javascript Questions