Found at Last - Recursion


Getting run time error

@Rishabh3699 in line 26 there is a semi colon after the curly bracket, remove that.
And in line number 16, instead of passing i++, you have to pass i+1 because we need to preserve value of i for every call in the memory, and passing i++ will change the value of i which will result in a wrong answer.
Hope this helps.