Capgemini interview question

Opps in java and sql