Topic: Bit Manipulation Problem / Level: intermediate

Problem: Write a program to find the smallest number greater than a given integer that has the same number of set bits.

Run the code to see the output here...