580. Bits Game
Given a non-negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and print them as space separated integers.
Input a non negative integer.
Print answer for each number less than num in space separated manner.
0 1 1 2 1 2
0 <= n <= 105