Capgemini Engineering interview question

while interviewing from data structures