Programmers.io interview question

Check Validate parentheses of a given string