Valid parenthesis leetcode problem. JavaScript interview question

Published --