Opto Investments Interview Question

Dealing with Roman numerals conversion