FactSet interview question

Binary tree, sorting algorithm