Chatham Financial Interview Question

Solve Leetcode Easy, 20. Valid Parentheses