Fidelity Investments interview question

Basic Java and Spring question.