Google interview question

To read the code and explain