DDDD Interview Question

Code binary search in C++