Pergunta de entrevista da empresa Fidelity Investments

Write a function that returns the integer value from a given roman numeral.