input: from typing import List
  
  def printArrayReverse(arr: List[int]) -> str:
      """ Prints the input array from the end to the beginning.
      >>> printArrayReverse([1, 2, 3, 4, 5])
      '5 4 3 2 1'
      >>> printArrayReverse([10, 20, 30])
      '30 20 10'
      """
      output = []
      for i in range(len(arr) - 1, -1, -1):
          output.append(str(arr[i]))
      return ' '.join(output)
output:     output = []
      for i in range(len(arr) - 1, -1, -1):
          output.append(str(arr[i]))
      return ' '.join(output)