Amazon interview question

Binary search in a rotated sorted array