SunLink interview question

Create a recursive function in javascript