Mental Model
We look for a number in a grid where each row and column is sorted. We move step by step to find if the number exists.
Analogy: Imagine a library where books are arranged by title from left to right and shelves are arranged by author from top to bottom. To find a book, you start at the top-right corner and move left or down depending on the title you want.
Matrix: 1 3 5 7 10 11 16 20 23 30 34 50 Start at top-right corner (7): 1 3 5 [7↑] 10 11 16 20 23 30 34 50