input: Write a function to take an array of integers as input, sort the array in non-decreasing order, and print the sorted array. If the input array is empty, simply print an empty array.
  assert sort_and_print_array([17, 41, 5, 22, 54, 6, 29, 3, 13])==[3, 5, 6, 13, 17, 22, 29, 41, 54]
  assert sort_and_print_array([])==[]
output: def sort_and_print_array(arr):
      sorted_arr = sorted(arr)
      return sorted_arr