Microsoft Interview Question

Leetcode easy problem - Valid Parentheses