AG Mednet interview question

Write a function that prints a triangle of star characters.