Capgemini Engineering interview question

must be strong in Core java