You are given a non-negative integer, n.
Your task is to count the total number of set bits (1s) in the binary representation of n.
You may assume that:
n is a non-negative integer.Return the count of set bits.
0
0
The binary representation of 0 is 0, which has zero 1 bits.
85
4
The binary representation of 85 is 1010101, which has four 1 bits.
255
8
The binary representation of 255 is 11111111, which has eight 1 bits.