FactSet interview question

Easy - mid leetcode questions