Finish the Valid Parentheses