Capgemini Engineering Interview Question

Data structures , oops