Topic: Bit Manipulation Problem / Level: intermediate

Problem: Write a program to find the largest integer less than or equal to n that has a specific number of set bits.

Run the code to see the output here...