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.
Example: n = 4 →
*
**
***
****
This is the canonical nested-loops warm-up: outer loop walks rows, inner loop emits stars.
3
* ** ***