Number of 1 Bits - Read Statement

Given a positive integer nn, return the number of set bits (1s) in its binary representation. This is also known as the Hamming weight.

Example: For n=11n = 11 (binary 1011), return 33.