Valid Parentheses Leetcode Python Interview