Microsoft interview question

Write a method that converts any roman numeral into an integer