Intel Corporation interview question

Implement a binary search algorithm.