Here is the code:
public int[] sortArray(int[] arr) { // sort array using quicksort sort(arr, 0, arr.length - 1); return arr; } private void sort(int