Topic: Two Pointer Problem / Level: beginner

Problem: Check if an array is sorted in a non-decreasing order using two pointers.

Run the code to see the output here...