Return sum of digits of an integer. Example: 1234 => 10
Implement this function:
def sum_of_digits(n: int) -> int:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: n.
Input
1234
Output
10