input: Write a function to print a given Python array from the end to the beginning.
  assert printArrayReverse([1, 2, 3, 4, 5])==5 4 3 2 1
  assert printArrayReverse([10, 20, 30])==30 20 10
  assert printArrayReverse([7])==7
  assert printArrayReverse([])==
  assert printArrayReverse([8, 9, 10, 11])==11 10 9 8
output: def printArrayReverse(arr):
      return ' '.join(map(str, arr[::-1]))