Chaayos interview question

Search in a 2-D sorted array