Topic: Bit Manipulation Problem / Level: beginner

Problem: Write a function that counts how many numbers can be formed by flipping exactly one bit in a binary number.

Run the code to see the output here...