Bloomberg interview question

explain and use the binary search method.