Capital One interview question

Convert a string in Roman numerals to decimal