Question d’entretien chez Mobikwik

Find if array is sorted and rotated