Roman To Integer Leetcode Solution In Javascript