Tectoro interview question

Write a program on triangle using stars. Pattern programming