Topic: Bit Manipulation Problem / Level: beginner

Problem: Implement a function that creates a mask where the middle k bits are set.

Run the code to see the output here...