Write a program to Calculate ‘Digit Sum’.

 

Output: