Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use a while loop and divide <code>x</code> by <code>10</code> to find the sum of the digits of <code>x</code>.
Solve with full IDE support and test cases