OSIsoft Interview Question

How would you code a recursive function?