Sponsored
Use these hints if you're stuck. Try solving on your own first.
How to compute the number of digits of a number ?
Divide the number by 10 again and again to get the number of digits.
Solve with full IDE support and test cases