MathWorks interview question

Find value in sorted array.