harbor run -t openthoughts/tasktrove-mix-h11-compositional-gradient-v2-mix-h11-compositional-0649
harbor download openthoughts/tasktrove-mix-h11-compositional-gradient-v2-mix-h11-compositional-0649
Your task is to find the maximum possible sum of the digits (in base 10) of a positive integer that is not greater than a given integer ( N ).
Input:
N = 12
Output:
3
N = 123
6
N = 99
18
Please place your solution in the /app/ directory.
/app/