Implement `hammingWeight(n)` returning the number of set bits (1s) in the binary representation of the non-negative integer `n`.
Run your code to see results.