Google interview question

how to use binary search