input: Write a python function to generate a right-angled triangle pattern of stars for a given number of rows.
  assert generate_triangle_pattern(3) == "* \n* * \n* * * \n"
  assert generate_triangle_pattern(5) == "* \n* * \n* * * \n* * * * \n* * * * * \n"
  assert generate_triangle_pattern(1) == "* \n"
output: def generate_triangle_pattern(rows):
      pattern = ""
      for i in range(1, rows + 1):
          pattern += "* " * i + "\n"
      return pattern