input: 
  def printArrayReverse(arr): 
      """Prints the given array from the end to the beginning.
      >>> arr = [1, 2, 3, 4, 5]
      >>> printArrayReverse(arr)
      5 4 3 2 1 
      """
      for i in range(len(arr) - 1, -1, -1): 
          print(arr[i], end = " ")
  
  printArrayReverse(arr)
  
output:     for i in range(len(arr) - 1, -1, -1): 
          print(arr[i], end = " ")