96. Extract Unique Rows

Hard

Given a 2-D array Z, return its unique rows — duplicate rows removed, with the remaining rows sorted.

Implement solve(...)