Fidelity Investments Interview Question

Java data handling question.