Google interview question

Algorithms.