Fidelity Investments Interview Question

Python basics question and general development