Pregunta de entrevista de FactSet

Logic question and brainteaser