Given an array of integers, sort the array in ascending order using Quick sort. The final sorted array should be returned by the function.
-5 * 104 <= data[i] <= 5 * 104
-23, -40, 10, 5, -9, 0, 1
[-40, -23, -9, 0, 1, 5, 10]
5, 1, 1, 2, 0, 0
[0, 0, 1, 1, 2, 5]