FactSet interview question

Code review