class Solution {
public int solution(String number) {
int answer = 0;
return answer;
}
}
class Solution {
public int solution(String number) {
int answer = 0;
String[] str = number.split("");
int sum = 0;
for (int i = 0; i < str.length; i++) {
sum += Integer.parseInt(str[i]);
int num = sum % 9;
sum = num;
}
answer = sum;
return answer;
}
}