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 separately.
Array before sorting: [ 8, 3, 7, 6, 2 ] Pivot chosen (e.g., last element): 2 Split into: [ ] 2 [ 8, 3, 7, 6 ] Then sort left and right parts recursively.
