Concept Flow - Roman to Integer Conversion
Start with total = 0
Read current Roman symbol
Compare current symbol value with next symbol value
Next symbol smaller or equal?
Add current symbol value to total
Move to next symbol
Repeat until end
No
Subtract current symbol value from total
Move to next symbol
Repeat until end
Return total
We read each Roman symbol left to right, add or subtract its value based on the next symbol, and accumulate the total.
