Capgemini Engineering Interview Question

regarding datastructures