Infosys Interview Question

sql, java