Epos Now interview question

Develop the construtor and some methods (recursion)