Secondmind interview question

How would you solve (x) technical problem (involving recursion, not too complex)