Domanda di colloquio di Amazon

Matching parentheses leetcode problem (same as found online)