Nagarro interview question

leetcode easy problems, with is valid parathesis