Function will take list as parameter and return sum of all element in the list