last digit sum-confusion

please can anyone help me understand the editorial of the problem : last digit sum

link: LASTDIG - Editorial - editorial - CodeChef Discuss

1 Like