Infosys interview question

Sql,java