Sollicitatievraag bij Qualtrics

They asked me to solve a problem using recursion