Google interview question

Cannot share this.