finished sum of digits exercise