Google interview question

I did a Code review