Practice Problem

Roman to Integer

Difficulty: Medium

Convert a Roman numeral string to an integer by mapping symbols to values and handling subtractive notation.