Check out our beginner friendly courses.
...
Search in Rotated Sorted Array
Try to solve the Search in Rotated Sorted Array problem.