FactSet Interview Question

Binary tree, sorting algorithm