FactSet interview question

sliding window with maxium and minimum frequency