Capgemini interview question

Core java , spring