input: Write a function to calculate the sum of digits of a given number.
  assert sum_of_digits(12345) == 15
  assert sum_of_digits(1111) == 4
  assert sum_of_digits(9876) == 30
output: def sum_of_digits(number):
      return sum(int(digit) for digit in str(number))