Fiserv interview question

Equilateral traingle print using java with single for loop