Amazon interview question

Find an element in a sorted rotated array.