iCIMS interview question

related to data structure