Pergunta de entrevista da empresa OYO

Write a program to find the pivot(index of element) element of a sorted rotated array ?