Wag! interview question

Simple recursion function