sortArray = function(nums) {
    return mergeSort(0, nums.length  - 1, nums);
}
https://leetcode.com/problems/sort-an-array/
Merge Sort
Time O(n*log(n)) | Space O(n)
@param {number[]} nums
@return {number[]}