Construct a square matrix aaa of size n×nn×nn×n satisfying the following conditions,

If it is possible to build such a matrix, print the matrix otherwise print −1-1−1.

This is a companion discussion topic for the original entry at https://toph.co/p/matrix-construction