Domanda di colloquio di Amazon

Balanced braces, another Tree based question