Texas Instruments interview question

Know how to use binary search