Topic: Bit Manipulation Problem / Level: beginner

Problem: Write a function to extract all the bits from a binary number between two positions.

Run the code to see the output here...