input: from typing import List
  
  def print_star_pattern(n: int) -> List[str]:
      """Prints a star pattern with n rows where the pattern first increases and then decreases in number of stars per row.
      >>> print_star_pattern(5)
      ['*', '**', '***', '****', '*****', '****', '***', '**', '*']
      """
      pattern = []
      for i in range(n):
          pattern.append("*" * (i + 1))
      for i in range(n - 1, 0, -1):
          pattern.append("*" * i)
      return pattern
output:     pattern = []
      for i in range(n):
          pattern.append("*" * (i + 1))
      for i in range(n - 1, 0, -1):
          pattern.append("*" * i)
      return pattern