Problem: Check if Array Is Sorted and Rotated

A Simple Modulo-Based Approach to Detect Sorted and Rotated Arrays