Google interview question

Recursive, Classes