Fidelity Investments Interview Question

2 easy Java coding questions