Google interview question

Data structures and algroithms related.