In a quicksort, the idea is you keep selecting a pivot. And you swap the a value you find on the left that is greater than the pivot with a value you find on the right which is less than the pivot. see: ref
Just want to be 100% sure what happens in the following cases:
- No value on left greater than pivot, value on right less than pivot
- Value on left greater than pivot, no value on right less than pivot
- No value on left greater than pivot, no value on right less than pivot