Topic: Bit Manipulation Problem / Level: intermediate

Problem: Write a program to find the total number of bits in the binary representation of the sum of all integers from 1 to n.

Run the code to see the output here...