Pergunta de entrevista da empresa JFrog

"Valid Parenthesis" coding problem. Given a string of round parenthesis (ex: "(()()()())()") - check if the string is valid (check if all opened parentheses eventually get closed within the string.