Given a natural number , your task is to produce a square matrix of size n \times n. This matrix should be filled with integers ranging from to n - 1, following the pattern demonstrated in the example.
A natural number , where 1 \leq n \leq 10.
Display a matrix of size n \times n, formatted as illustrated in the example.
Example 1