Create ValidParentheses

we can use stack to solve this problem.