35. Matrix Rank

Hard

Return the rank of matrix Z as an int.

Implement solve(...)