...
Challenge: Implement Partition
The partition function should partition the subarray array[p⋯r]array[p \cdots r]array[p⋯r] so that all elements in ...