Pergunta de entrevista da empresa Mobikwik

Find if array is sorted and rotated