Topic: Bit Manipulation Problem / Level: intermediate

Problem: Create a function that extracts the first k bits from a binary number.

Run the code to see the output here...