Pregunta de entrevista de CyberArk

coding question, Search in a sorted and rotated Array.