Fidelity Investments interview question

Some questions were related to python and javascript