Google interview question

They asked a classic recursion question.