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 through a photo album to find the first and last pictures of your friend. You start from the first photo and move forward until you find the first and last times your friend appears.
Array: [5] -> [3] -> [7] -> [3] -> [9] -> [3] -> null Indexes: 0 1 2 3 4 5
