Pergunta de entrevista da empresa FactSet

one maths question which can be solved using two pointers optimization is crucia