OSIsoft interview question

How would you code a recursive function?