input: from typing import List
  
  def printArrayReverse(arr: List[int]) -> None:
      """ Prints the elements of a given array in reverse order, each separated by a space.
      >>> 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 = " ")