input: from typing import List
  
  def printArrayReverse(arr: List[int]):
      """ This function prints the elements of a given array from the end to the beginning.
      Example:
      for printArrayReverse([1, 2, 3, 4, 5])
      5 4 3 2 1
      """
output:     for i in range(len(arr)-1, -1, -1):
          print(arr[i], end=' ')