Topic: Bit Manipulation Problem / Level: beginner

Problem: Create a function that clears all bits except for the first k bits in a number.

Run the code to see the output here...