Capgemini Engineering Interview Question

Java, Data structure