Agoda interview question

Can exactly remember, but something related to recursion.