NAKAD interview question

Q2 Find target element in rotated array.