Largest Maximum-Digit-Sum Number Below N

Company: HSBC_16sep

Difficulty: medium