Amazon interview question

Search element in 2D matrix