Pregunta de entrevista de Computer Generated Solutions

Convert a roman numeral string to an integer.