Algonomy Interview Question

Convert the given Roman Number string to integer