Adobe interview question

Implement a binary search algorithm.