Capgemini Engineering Interview Question

while interviewing from data structures