Fidelity International interview question

Basic Java and Database Questiona