IFS Interview Question

Data structures or algorithms for a given scenario