Domanda di colloquio di Google

Technical question about data structure and codings