Build the rows
The outer counter crosses zero, and its absolute value makes the upper and lower row widths match.
The rows build toward ABCD in the middle and then shrink back to a single D.
The outer counter crosses zero, and its absolute value makes the upper and lower row widths match.
The inner range begins at abs(x) and increases to 3; chr(y + 65) maps those positions to A through D.
The inner print calls use end="" to keep values on the same line. The final empty print() moves to the next row.