Amazon Interview Question

To find something in a 2D matrix