Deloitte interview question

Data structures