Topic: Bit Manipulation Problem / Level: beginner

Problem: Write a function that extracts bits from position i to j in a binary number.

Run the code to see the output here...