LeetCode > Facebook > Arrays and Strings > Roman to Integer - Fail issue

Unable to determine why I am getting a wrong answer when running on LeetCode but works fine when i run in VS. Failing with input of III (trivial), says i retrun 1 instead of the correct answer 3. I am fairly new to LeetCode, is it possible to debug when executing the code?

Comments (1)