Topic: Bit Manipulation Problem / Level: beginner

Problem: Implement a function to clear all bits from the most significant bit (MSB) to the ith bit.

Run the code to see the output here...