input: Write a function to sort an array of integers and print out the sorted array. The function should return the sorted array as well. If the input array is empty, return an empty array.
  assert sort_and_print([17, 41, 5, 22, 54, 6, 29, 3, 13]) == [3, 5, 6, 13, 17, 22, 29, 41, 54]
  assert sort_and_print([]) == []
output: def sort_and_print(arr):
      sorted_arr = sorted(arr)
      return sorted_arr