Topic: Bit Manipulation Problem / Level: intermediate

Problem: Create a function that extracts the last k bits from an integer.

Run the code to see the output here...