Pergunta de entrevista da empresa Adobe

JS: given a matrix with numbers ordered on the rows and columns, write an algorithm to determine the position of a given number