Domanda di colloquio di Google

a question involving Tree and Hashtable manipulation