var TEST = function () { function _getNum(node) { let str = ''; while (node && node !== 0) { str = node.val + str; node = node.next; } return parseInt(str) || 0; } function _getNode(str) { let node = 0; let len = str.length; for (var i=0; i