Given an integer n, return a centered pyramid of stars with height n. Row i (1-indexed) has (2*i - 1) stars preceded by (n - i) spaces. Rows are separated by \n.
n
i
(2*i - 1)
(n - i)
\n
Example: n = 4 →
n = 4
* *** ***** *******
4