SunLink Interview Question

Create a recursive function in javascript