FactSet interview question

How would you implement binary search?