Pregunta de entrevista de Unthinkable

Row wise and Column wise sorted 2D matrix