Algonomy interview question

Convert the given Roman Number string to integer