input: from typing import List
  
  
  def reverse_words(input: List[str]) -> str:
      """ Reverse the order of words in a given string and return the reversed string.
      >>> reverse_words("This is an example sentence")
      "sentence example an is This"
      >>> reverse_words("Python programming is fun")
      "fun is programming Python"
      """
output:     words = input.split()
      reversed_words = words[::-1]
      return ' '.join(reversed_words)