Capgemini Engineering interview question

data structure