Domanda di colloquio di Google Cloud

Intermediate difficulty data structures question