Cryptarithmetic Problems Leetcode Javascript