結果 : balancing parentheses hackerrank solution python