Google interview question

Simple undergraduate algorithms concepts and data structures.