OSIsoft interview question

Asked about how to write a recursive function.