Pregunta de entrevista de OSIsoft

How would you code a recursive function?