結果 : valid parentheses leetcode python solution