Dexcom interview question

How do you to do binary search?