Amazon Interview Question

Search element in 2D matrix