LinkedIn interview question

Find an element in a rotated array.