Pergunta de entrevista da empresa OSIsoft

How would you code a recursive function?