Dematic interview question

How to add elements to a list. Recursion.