Google interview question

Data structure algorithms mid level