input: from typing import List
  
  
  def print_pattern(n: int) -> None:
      """ Prints a pattern of asterisks where it first increases in rows from
      1 to n and then decreases back to 1.
      >>> print_pattern(5)
      *
      **
      ***
      ****
      *****
      ****
      ***
      **
      *
      """
  
  
output:     for i in range(1, n + 1):
          print('*' * i)
      for i in range(n - 1, 0, -1):
          print('*' * i)