Gemography interview question

Solve an algorithmic challenge about recursion