Tripjack interview question

Round1: Convert Roman to Integer: Write a program to convert a Roman numeral into its corresponding integer value.