FactSet Interview Question

First tech interview had two sum