Daffodil Software interview question

Data structures, js and basic logical questions