Topic: Bit Manipulation Problem / Level: intermediate

Problem: Write a program to find the number of unique values that can be generated by toggling the k-th bit of a binary number.

Run the code to see the output here...