Accenture interview question

related to data structure