Google interview question

Mostly about your thinking process