Tectoro Interview Question

Write a program on triangle using stars. Pattern programming