Domanda di colloquio di Fidelity Investments

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