Capgemini interview question

Whole interview was based on Java Programming