Pergunta de entrevista da empresa Sun Trading

Matrix has both rows and columns sorted. How will you search an element? Manager asked many questions about my solution to the coding exercise.