DIY: Valid Parentheses

Solve the interview question "Valid Parentheses" in this lesson.

Problem statement

For this problem, you are given a string that ...