結果 : valid parentheses leetcode solution without stack