Microsoft interview question

Convert the roman numbers to interger values