Esri interview question

Write a binary search for numbers in an array.