leetle

7. Valid Parentheses

Write a function solve that determines if a string s of parentheses is valid. Valid parentheses must be closed in the correct order.

Example: Input: "()[]{}" Output: True

Make sure you return your solution, don't print!


def solve(s):
    pass