Texas Instruments Interview Question

Know how to use binary search