Mental Model
Quick Sort splits the list into smaller parts around a pivot, sorts each part, and then combines them to get a sorted list.
Analogy: Imagine sorting a pile of cards by picking one card as a divider, putting smaller cards on one side and bigger cards on the other, then sorting each side the same way until all cards are in order.
Array before sorting: [ 8, 3, 7, 6, 2 ] Pivot chosen (e.g., last element): 2 Partition step divides array into: [ 2 ] [ 3, 7, 6, 8 ] Then recursively sort each part.