Pergunta de entrevista da empresa Fidelity Investments

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