LeetCode Solution: 1752. Check if Array Is Sorted and Rotated (Web Pulse, 2026)