search in rotated sorted array 2

search in rotated sorted array 2