Fidelity Investments Interview Question

Got a paper with a simple method written in a language I'd never seen and had to debug all the syntax errors