Paytm Money interview question

Find element in Rotated sorted array