Fidelity Investments Interview Question

Simple coding questions based on languages on my resume