Topic: Bit Manipulation Problem / Level: beginner

Problem: Write a function that counts how many numbers can be formed with a given number of bits set to 1.

Run the code to see the output here...