Topic: Bit Manipulation Problem / Level: beginner

Problem: Write a program to find the longest substring of a binary string that contains alternating bits.

Run the code to see the output here...