UVA : 11332 (Summing Digits)

Problem Link 

Solution :