Sponsored
Use these hints if you're stuck. Try solving on your own first.
Encrypted numbers are of the form <code>11…1 * maxDigit</code>.
Solve with full IDE support and test cases