Topic: Bit Manipulation Problem / Level: intermediate

Problem: Implement a function that counts how many numbers in a given range can be expressed as a sum of distinct powers of two.

Run the code to see the output here...