Topic: Bit Manipulation Problem / Level: beginner

Problem: Write a function to calculate the number of leading 1s in a binary number.

Run the code to see the output here...