Accenture Interview Question

related to data structure