*Debug*   function `getSumOfDigits` that takes positive integer to calculate sum of it's digits. Assume that argument is an integer.

### Example
```
123  => 6
223  => 7
1337 => 15
```

Difficulty: introductory

Starter code:

def get_sum_of_digits(num):
	

Solutions:
def get_sum_of_digits(num):
    return sum(map(int, str(num)))

def get_sum_of_digits(num):
    sum = 0
    str_num = str(num)
    for x in str_num:
        sum += int(x)
    return sum

def get_sum_of_digits(n):
    return sum(int(d) for d in str(n))

def get_sum_of_digits(n):
    return sum(map(int, str(int(n))))

def get_sum_of_digits(num):
    sum = int()
    digits = str(num)
    for x in digits:
        sum += int(x)
    return sum

def get_sum_of_digits(num):
    digits = []
    for i in str(num): digits.append(int(i))
    return sum(digits)

def get_sum_of_digits(num):
    return sum(list(map(int, [i for i in str(num)])))

import re
def get_sum_of_digits(num):
    sum = 0
    num = str(num)
    digits = re.findall("[0-9]{1}",num)
    for x in digits: 
        x = int(x)
        sum = sum + x
    return sum

def get_sum_of_digits(num):
    my_list = []
    for i in str(num):
        my_list.append(int(i))
    return sum(my_list)

import functools
# def get_sum_of_digits(num):
#     sum = 0
#     digits = str(num)
#     for x in digits:
#         sum += int(x)
#     return sum
def get_sum_of_digits(num):   
    return functools.reduce(lambda a,b : a+b,[int(x) for x in str(num)] )