Topic: Bit Manipulation Problem / Level: beginner

Problem: Write a program to reverse the last k bits of a binary number.

Run the code to see the output here...