input: Below is an instruction that describes a task. Write a response that appropriately completes the request.
  
  ### Instruction:
  Create an algorithm in Python to generate the first n elements of the Sierpinski triangle.
  
  ### Input:
  n = 6
  
  ### Output:
  def generate_sierpinski_triangle(n: int) -> List[str]:
      """Generate the first n rows of the Sierpinski triangle.
      Each row is represented as a string of '1's and '0's.
      
      >>> generate_sierpinski_triangle(3)
      ['0', '101', '0101010']
      """
      
      result = []
      for i in range(n):
          if i == 0:
              result.append('0')
          else:
              prev_row = result[-1]
              new_row = ''
              for char in prev_row:
                  new_row += '1' if char == '0' else '0'
              result.append('0' + new_row + '0')
      return result
output:     result = []
      for i in range(n):
          if i == 0:
              result.append('0')
          else:
              prev_row = result[-1]
              new_row = ''
              for char in prev_row:
                  new_row += '1' if char == '0' else '0'
              result.append('0' + new_row + '0')
      return result