Capgemini Engineering interview question

regarding datastructures