Valid Parentheses Leetcode Python Compiler Code