MathWorks Interview Question

Find value in sorted array.