Topic: Bit Manipulation Problem / Level: beginner

Problem: Check if a number has alternating bits (like 010101).

Run the code to see the output here...