Pregunta de entrevista de Atlassian

Finding an element in a rotated sorted array