Topic: Two Pointer Problem / Level: beginner

Problem: Check if an array contains two consecutive duplicates using two pointers.

Run the code to see the output here...