input: Write a function to sort and print out the elements of an array of integers.
  assert print_sorted_array([17, 41, 5, 22, 54, 6, 29, 3, 13])==[3, 5, 6, 13, 17, 22, 29, 41, 54]
  assert print_sorted_array([10, 9, 8, 7, 6, 5, 4, 3, 2, 1])==[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  assert print_sorted_array([])==[]
  assert print_sorted_array([3])==[3]
  assert print_sorted_array([5, -1, 3, 2, 4])==[-1, 2, 3, 4, 5]
output: def print_sorted_array(arr):
      return sorted(arr)