input: from typing import List
  
  
  def sum_of_digits(n: int) -> int:
      """ Calculate the sum of the digits of the given number n.
      >>> sum_of_digits(6342)
      15
      """
      total = 0
      for ch in str(n):
          total += int(ch)
      return total
output:     total = 0
      for ch in str(n):
          total += int(ch)
      return total