Accenture Interview Question

Data structure