Pergunta de entrevista da empresa Computer Generated Solutions

Convert a roman numeral string to an integer.