input: 
  def printArrayReverse(arr):
      """ Prints a python array from the end to the beginning.
      >>> printArrayReverse([1, 2, 3, 4, 5])
      5 4 3 2 1
      """
  
output:     if not arr:
          return
      print(arr[-1], end=' ')
      printArrayReverse(arr[:-1])