Capgemini Engineering interview question

datastructures, algorithm