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