Sponsored
Use these hints if you're stuck. Try solving on your own first.
Think about each digit independently.
Turn the rightmost non-zero digit to zero until the digit sum is greater than target.
Solve with full IDE support and test cases