Roche interview question

Code to convert Roman numerals to numbers