Fidelity Investments Interview Question

Work on Java