Pergunta de entrevista da empresa FactSet

sliding window with maxium and minimum frequency