Google Interview Question

They asked a classic recursion question.