Hello vlkn448!
Are you familiar with the concept of recursion? What have you tried so far?