Pregunta de entrevista de FactSet

The coding interview includes pseudocode and python implementation