vlinder Labs interview question

a recursion based coding problem