Adobe Interview Question

Implement a binary search algorithm.