input: Write a function to sort the given array of integers and print the sorted array. If the array is empty, print 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)
      print(sorted_arr)