Domanda di colloquio di Google

Nothing unexpected, all about algorithms and data structure.