Topic: Bit Manipulation Problem / Level: intermediate

Problem: Create a function that generates a mask for the least significant k bits of a number.

Run the code to see the output here...