IFS interview question

Data structures or algorithms for a given scenario