Topic: Bit Manipulation Problem / Level: beginner

Problem: Write a function to set the first k bits of a number to 1.

Run the code to see the output here...