Topic: Bit Manipulation Problem / Level: beginner

Problem: Write a function that extracts the k least significant bits from a number.

Run the code to see the output here...