solution for roman numeral problem