Topic: Bit Manipulation Problem / Level: advanced

Problem: Implement a function to count how many integers from 1 to n can be expressed in binary with an odd number of bits set.

Run the code to see the output here...