24. Square Matrix in Row-Major Order

Easy

Return an n x n matrix holding the values 0 through n*n - 1 in row-major order.

Input

3

Output

[[0 1 2]
 [3 4 5]
 [6 7 8]]
Implement solve(...)