Given a natural number , produce a square matrix of dimensions n \times n filled with the integers and , following the pattern shown in the example.
A natural number , where 1 \leq n \leq 10.
Display a matrix of size n \times n that matches the pattern in the example.
Example 1