Topic: Bit Manipulation Problem / Level: intermediate

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

Run the code to see the output here...