Capgemini Engineering interview question

Java, Data structure