Notice that sumDigits(0) = 0. But what about a number that is greater than 0? Notice that sumDigits(12345) = sumDigits(1234) + 5. and sumDigits(788) = sumDigits(78) + 8. In general, for a positive integer n, add the rightmost digit of n to the result produced by sumDigits on the number that you get by removing the rightmost digit of n.
Test your definition by pushing the Compute button. After it works, submit it by pushing the Submit button.