Almost Rectangle

Given an n x n grid containing exactly two marked cells *, mark two additional cells so the four marked cells are the corners of an axis-aligned rectangle. Return the completed grid. Any valid completed grid is accepted.

Examples
Input: [1,2,3]
Output: 0
Hints

Almost Rectangle

Given an `n x n` grid containing exactly two marked cells `*`, mark two additional cells so the four marked cells are the corners of an axis-aligned rectangle. Return the completed grid. Any valid completed grid is accepted.