Google interview question

Nothing too complicated.