Return an n x n matrix holding the values 0 through n*n - 1 in row-major order.
n*n - 1
Input
3
Output
[[0 1 2] [3 4 5] [6 7 8]]
solve(...)