Return the sum of the digits of a non-negative n (use a while loop).
digitSum(123) -> 6
digitSum(0) -> 0