https://practice.geeksforgeeks.org/problems/sorted-matrix/0