ANR Software interview question

Print a triangle pattern using for loop