Mental Model
Find where a number first appears and last appears in a list by checking each item from start to end.
Analogy: Imagine looking for a friend's name in a guest list. You note the first time you see their name and the last time it appears before the list ends.
Array: [1] -> [2] -> [3] -> [2] -> [4] -> [2] -> [5] Indexes: 0 1 2 3 4 5 6
