Topic: Bit Manipulation Problem / Level: advanced

Problem: Create a function to find the total number of set bits in the binary representation of all integers from 1 to n.

Run the code to see the output here...