Fiserv Interview Question

Equilateral traingle print using java with single for loop