Topic: Bit Manipulation Problem / Level: beginner

Problem: Implement a function that finds the total number of bits set in all numbers from 1 to n.

Run the code to see the output here...