Solve the 'Search a 2D Matrix' question