Google interview question

Data structures