Capgemini interview question

Mostly on core java