Gainsight interview question

find element in 2d sorted array