Python Add Border
def add_border(picture: list[str]) -> list[str]:
    width = len(picture[0]) + 2
    border = "*" * width
    return [border] + [f"*{row}*" for row in picture] + [border]

This builds a new grid with a * border around every side. It adds a full top and bottom row, then wraps each existing row from left and right.