Calculate the sum of numbers from 1 to n using recursion | Assignment 5