Neudesic Interview Question

valid parenthesis from leetcode easy