Cognizant interview question

C, data structure