Given an integer n, return a right-angled triangle of * characters with height n. Row i (1-indexed) contains i stars. Rows are separated by \n.
This is the canonical nested-loops warm-up: outer loop walks rows, inner loop emits stars.
1 ≤ n ≤ 20Outer loop i from 1 to n; inner loop prints i stars.
3