Fidelity Investments interview question

Python basics question and general development