I am trying to understand Quick sort. The problem that is confusing me is the partition function. Here is the code from my instructor:
function partition(arra