Roman To Integer Leetcode Javascript Practice