NiYO interview question

Basic Java and SQL.