Write a function that takes an unsigned integer and return the number of '1' bits it has (also known as the Hamming weight).
Click here
Use n & 1 to check last bit and add to counter. O(n) time, where n is number representation length.Run make to run python and Swift files.