This is problem no #1752 from Leetcode which involves an array and we have to check wether it is sorted and rotated or not.
The original problem is as follows:
Given an array nums, return true if the array was originally sorted in non-decreasing ord...