Daffodil Software Interview Question

Mostly about the data structure