Gainsight Interview Question

find element in sorted array