FactSet interview question

Four problem sets of coding problems. Another interviewer asked a problem and then you have to optimize it.