Intern — Senior
Calculating the sum of digits contained in a string
livecode
Task condition
The method receives a string containing only digits and should return the sum of all these digits.
Input: "123" Output: 6
class Solution {
public static Integer calculateSum(String numericString) {
return null;
}
}