Fidelity Investments interview question

Simple coding questions based on languages on my resume