Capgemini interview question

Related to Java and SQL.