JPMorganChase Interview Question

Given roman numerals as a string, convert it to an integer