Fidelity Investments Interview Question

Basic Java and Spring question.