FactSet Interview Question

How would you implement binary search?