Google interview question

Mostly focussed on data structures and algorithms