Capgemini Engineering interview question

Data structures , oops