Fidelity Investments Interview Question

Some questions were related to python and javascript