Intel Corporation Interview Question

Implement a binary search algorithm.