Google interview question

Nothing too hard, actually...