Demonware Interview Question

Recursion question, replace for loop wuth recursive approach