Roman to Integer
Given a roman numeral, convert it to an integer.
Roman to Integer

Given a roman numeral, convert it to an integer.

Example 1:
Input: "III"
Output: 3
Input
arr ="III"

Convert roman

s
iI0I1I2
Variables
VariableValue
sIII
DepthFunction Call
Stack empty
0/4