Write a function digitsum that calculates the digit sum of an integer. The digit sum of an integer is the sum of all its digits.
By Penny Connelly at Dec 31 2020