My function is just a simple recursive add, with a cache instruction to prevent it from going through the recursion more than it needs to. So input 4, we get 1+2+3+4 = 10. I