Daffodil Software interview question

Mostly about the data structure