Try solving it with recursive ,1 line solution


#1

return 0 if the number is less than 5 to the called function else add it up to the previously called function , do it recursively until number becomes 0