output_description: Print the reversed sequence in a line. Print a single space character between
  adjacent elements (Note that your program should not put a space character
  after the last element).
input_description: The input is given in the following format:
  
      
      
      n
      a1 a2 . . . an
      
  
  n is the size of the sequence and ai is the ith element of the sequence.
attempt: def reverse_array(array):
      array = array[::-1]
  
      for i in range(len(array)):
          if i == len(array) - 1:
              print(str(array[i]), end="")
          else:
              print(str(array[i]) + " ", end="")
  
      print("\n", end="")
  
  
  if __name__ == "__main__":
  
      number = int(input())
      seq = input().split(" ")
      array = [int(a) for a in seq]
      reverse_array(array)
  
problem_description: Reversing Numbers
  
    
  
  Write a program which reads a sequence and prints it in the reverse order.
samples: [{"input": "5\n    1 2 3 4 5", "output": "5 4 3 2 1"}, {"input": "8\n    3 3 4 4 5 8 7 9", "output": "9 7 8 5 4 4 3 3"}]