24. Sort Rows by nth Column

Medium

Sort the rows of matrix Z by the values in its n-th column. Return the sorted matrix.

Implement solve(...)