Mental Model
We want to find a number in a list that was sorted but then rotated. We use a smart search that checks which part is sorted to decide where to look next.
Analogy: Imagine a clock face with numbers 1 to 12 in order. If you rotate the clock so 3 is at the top, the numbers are still in order but start from 3. To find a number, you check if it is in the part before or after the top and search there.
Original sorted array: [1] -> [2] -> [3] -> [4] -> [5] -> [6] -> [7] -> null Rotated array (rotated at 4): [4] -> [5] -> [6] -> [7] -> [1] -> [2] -> [3] -> null
