FactSet Interview Question

Sort an array using binary search