Mobikwik Interview Question

Find if array is sorted and rotated