PayPal interview question

Write a function to convert Roman numerals into integers