Roman To Integer Leetcode Javascript Solution