Return the sum of the digits of the non-negative integer n.
Function
function solve(n)
Example 1
n = 1234 โ 10
Submit also runs 4 hidden tests, including edge cases.
Return the sum of the digits of the non-negative integer n.
function solve(n)
n = 1234 โ 10
Submit also runs 4 hidden tests, including edge cases.