Google interview question

algorithmic complexity