Accenture interview question

Data structure