Google interview question

Data structure and algorithms