Visualize the Diamond pattern, a pyramid stacked on an inverted pyramid, built with two loops.
A diamond shape formed by stacking a pyramid on top of an inverted pyramid. It has 2n-1 total rows.
The first loop prints the upper half (rows 0 to n-1, expanding). The second loop prints the lower half (rows n-2 to 0, shrinking).
A diamond with n rows on each half has exactly (2n-1) rows total. The widest row (middle) has 2n-1 stars.