Implement solve(arr) that sorts an array of numbers using thequicksort algorithm. Return a new sorted array — don't mutate the input.
solve(arr)
Constraints
Array.prototype.sort
Sample tests