Implement a solution using standard data structures and algorithms.
Implement solve(values) to sort a list of integers in nondecreasing order. Return a new sorted list and do not modify the input list. Use an algorithm with O(n log n) time complexity.
values is a list of integers. Return a list containing the same values in sorted order.
def solve(values):