input: Write a function to print a pattern of stars where it first increases and then decreases in size. The pattern should start with one star, increase up to five stars, and then decrease back to one star. The function should take an integer parameter n representing the maximum number of stars and print the pattern accordingly.
  assert print_pattern(5)
  assert print_pattern(3)
output: def print_pattern(n):
      for i in range(1, n + 1):
          print('*' * i)
      for i in range(n - 1, 0, -1):
          print('*' * i)