82. Matrix Rank

Hard

Compute and return the rank of matrix Z as an int.

Implement solve(...)