ZopSmart Interview Question

Write a program for recursion using swift