Python Hamming Weight Leetcode Javascript Interview