Topic: Bit Manipulation Problem / Level: beginner

Problem: Create a function to set the last k bits of a number.

Run the code to see the output here...