Adobe interview question

Find the target element in rotated sorted array