input: def print_pattern(n: int) -> None:
      """
      Print a pattern of asterisks in an increasing order up to 'n' rows, 
      and then in a decreasing order back to 1 row.
  
      >>> print_pattern(3)
      *
      **
      ***
      **
      *
      >>> print_pattern(5)
      *
      **
      ***
      ****
      *****
      ****
      ***
      **
      *
      """
output:     for i in range(1, n + 1):
          print('*' * i)
      for i in range(n - 1, 0, -1):
          print('*' * i)