Valid Parentheses Leetcode Python Challenges Using Tuples