Question d’entretien chez Amazon

valid parenthesis leetcode question (use a stack to solve)