Mental Model
Selection sort finds the smallest item and puts it at the start, then repeats for the rest.
Analogy: Imagine picking the smallest apple from a basket and placing it in a new row, then picking the next smallest from the remaining apples, and so on.
Unsorted array: [7] -> [3] -> [5] -> [2] -> [4] Sorted part: [] Unsorted part: [7] -> [3] -> [5] -> [2] -> [4]
