Bloomberg Interview Question

explain and use the binary search method.