Topic: Bit Manipulation Problem / Level: beginner

Problem: Create a function that counts how many times a specific bit pattern appears in a binary number.

Run the code to see the output here...