Macy's Interview Question

How would you convert a string of roman numerals to an integer?