https://romankurnovskii.com/en/tracks/algorithms-101/leetcode/hard/1632/
1632. Rank Transform of a Matrix