Broadridge interview question

searching an element in a rotated sorted array