{"ScriptPreparationCode":null,"TestCases":[{"Name":"Reduce","Code":"function s(x) {\r\n return x.toString().split(\u0027\u0027).reduce((total, cur) =\u003E total \u002B= parseInt(cur), 0);\r\n}\r\nlet x = s(123456789);","IsDeferred":false},{"Name":"Dividing","Code":"function s(x) {\r\n let sum = 0;\r\n while (x \u003E 0) {\r\n sum \u002B= x % 10;\r\n x = Math.floor(x / 10)\r\n }\r\n return sum;\r\n}\r\nlet x = s(123456789);","IsDeferred":false}]}