Google interview question

Data structures and algorithms mainly